home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2000 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: lilith.uab.es!pollux!is04439
  2. From: Alberto Otero Garcia <is04439@els.url.es>
  3. Newsgroups: comp.lang.c
  4. Subject: Generic lists (data structures)
  5. Date: Thu, 18 Jan 1996 09:14:50 +0100
  6. Organization: Universitat Autonoma de Barcelona
  7. Distribution: inet
  8. Message-ID: <Pine.HPP.3.91.960118090015.21549A-100000@pollux>
  9. NNTP-Posting-Host: pollux.url.es
  10. Mime-Version: 1.0
  11. Content-Type: TEXT/PLAIN; charset=US-ASCII
  12. X-Sender: is04439@pollux
  13.  
  14. Hello, I'm in problems and I want someone to help me. Please!!!!
  15. My question is if someone can send me the code in C to work with generic 
  16. lists (insert, create, delete, etc. functions). I'll explain what is for 
  17. me a generic list 'cos I don't know if this is the correct name in english:
  18. is a data structure, for working with dinamic memory, in what you have 
  19. your info encadenated. Usually is named with stacks and queues.
  20. The graphic would be somethig like that:
  21.  
  22.  pointer____
  23.            |
  24.            \/   
  25.      ________        _________        _________      _________
  26.      |      |        |       |        |       |      |       |
  27.      |______|        |_______|        |_______|      |_______|
  28.      |      |        |       |        |       |      |       |
  29.      |______|        |_______|        |_______|      |_______|
  30.      |______|------->|_______|------->|_______|----->|_______|
  31.  
  32. The problem is that the code must run with any data structure, so you 
  33. have to work with void* and functions*.
  34.  
  35. I need the code the fast as you can, so if you have got it, send it to me 
  36. now, I'll be glad and I'll give you anything you want.
  37.  
  38.    Thank you very much if you send it.
  39.    (Can you send the answer to the newsgroup and to my e-mail address 
  40.     please, it is very important for me?)
  41.  
  42.    Alberto Otero Garcia      e-mail: is04439@els.url.es
  43.